﻿@extends('layouts.home')

@section('title')
  <title>后盾个人博客</title>
  <meta name="keywords" content="个人博客模板,博客模板" />
  <meta name="description" content="寻梦主题的个人博客模板，优雅、稳重、大气,低调。" />
@endsection

@section('content')


  <article class="blogs">
    <h1 class="t_nav">
      <span>您当前的位置：
        <a href="{{ url('/') }}">首页</a>&nbsp;&gt;&nbsp;
        <a href="/news/s/">慢生活</a>&nbsp;&gt;&nbsp;
        <a href="/news/s/">日记</a>
      </span>
      <a href="/" class="n1">网站首页</a>
      <a href="{{ url('/list/'.$data->cate_id) }}" class="n2">{{ $data->cate_name }}</a>
    </h1>

    <div class="index_about">
      <h2 class="c_titile">{{ $data->art_title }}</h2>
      <p class="box_c"><span class="d_time">发布时间：{{ date('Y-m-d',$data->art_time) }}</span><span>编辑：{{ $data->art_editor }}</span><span>查看次数：{{ $data->art_view }}</span></p>
      <ul class="infos">
        {!! $data->art_content !!}
      </ul>
      <div class="keybq">
        <p><span>关键字词</span>：{{$data->art_tag}}</p>

      </div>
      <div class="ad"> </div>
      <div class="nextinfo">
        <p>上一篇：
          @if(isset($data->pre_article))
          <a href="{{ url('/article/'.$data->pre_article->art_id) }}">{{ $data->pre_article->art_title }}</a>
          @else
            没有上一篇了
          @endif
        </p>
        <p>下一篇：
          @if(isset($data->next_article))
            <a href="{{ url('/article/'.$data->next_article->art_id) }}">{{ $data->next_article->art_title }}</a>
          @else
            没有下一篇了
          @endif
        </p>
      </div>
      <div class="otherlink">
        <h2>相关文章</h2>
        <ul>
          @foreach($data->like_cate as $value)
          <li><a href="{{ url('/article/'.$value->art_id) }}" title="{{ $value->art_title }}">{{ $value->art_title }}</a></li>
          @endforeach
        </ul>
      </div>
    </div>

    @parent

  </article>


@endsection
